<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<?php e($html->charset()); ?>
<title><?php __($sitename); e(' &rsaquo; '); __($title_for_layout); ?></title>
<?php
  if (is_array($stylesheet)) {
      foreach ($stylesheet as $css) {
          e($html->css($css));
      }
  }
?>
</head>
<body>

<div id="body">
  <div class="body">
    <div style="height:375px; padding-top:15px;">
<?php if ($session->check('Member.logged')) { ?>
      <table cellpadding="3" cellspacing="0" border="0" style="margin:0 0 0 55px;">
        <tr>
          <td><a href="<?php e($this->base); ?>/members/genealogy"><img src="<?php e($this->base); ?>/img/b-tree.jpg" border="0" /></a></td>
          <td><a href="<?php e($this->base); ?>/sales/order_list"><img src="<?php e($this->base); ?>/img/b-orders.jpg" border="0" /></a></td>
          <td><a href="<?php e($this->base); ?>/members/update"><img src="<?php e($this->base); ?>/img/b-details.jpg" border="0" /></a></td>
        </tr>
        <tr>
          <td><a href="<?php e($this->base); ?>/members/sponsored"><img src="<?php e($this->base); ?>/img/b-sponsored.jpg" border="0" /></a></td>
          <td><a href="<?php e($this->base); ?>/sales/bonus_list"><img src="<?php e($this->base); ?>/img/b-bonuslist.jpg" border="0" /></a></td>
          <td><a href="<?php e($this->base); ?>/members/password"><img src="<?php e($this->base); ?>/img/b-password.jpg" border="0" /></a></td>
        </tr>
        <tr>
          <td><a href="<?php e($this->base); ?>/members/indented"><img src="<?php e($this->base); ?>/img/b-indented.jpg" border="0" /></a></td>
          <td><a href="<?php e($this->base); ?>/coupon_histories/coupon_list"><img src="<?php e($this->base); ?>/img/b-coupon.jpg" border="0" /></a></td>
          <td><a href="<?php e($this->base); ?>/members/logout"><img src="<?php e($this->base); ?>/img/b-logout.jpg" border="0" /></a></td>
        </tr>
        <tr>
          <td><a href="<?php e($this->base); ?>/members/downlines"><img src="<?php e($this->base); ?>/img/b-downlines.jpg" border="0" /></a></td>
          <td><a href="<?php e($this->base); ?>/sales/bv_allocation"><img src="<?php e($this->base); ?>/img/b-bvreport.jpg" border="0" /></a></td>
          <td>&nbsp;</td>
        </tr>
      </table>
<?php } ?>
    </div>
    <div style="border:2px solid #ccc; border-top:0; margin:-1px 21px 0 8px;">
      <div class="content">
        <table cellpadding="3" cellspacing="0" border="0">
          <tr>
            <td>
<?php if ($session->check('Message.flash') || $session->check('Message.auth')) { ?>
        <div id="messageBox" style="margin-bottom:5px;"><?php $session->flash().$session->flash('auth'); ?></div>
        <div class="clear"></div>
<?php } else if ($session->check('Message.email')) { ?>
        <div id="messageBox" style="margin-bottom:5px;"><?php $session->flash('email'); ?></div>
        <div class="clear"></div>
<?php } ?>
            </td>
          </tr>
          <tr>
            <td>
<?php e($content_for_layout); ?>
            </td>
          </tr>
          <tr>
            <td>
      <div class="clear"></div>
      <div id="bottom-links" style="text-align:center; margin:50px 0 12px;">
        <a href="http://www.agapeatp.com/index.php?option=com_frontpage&Itemid=1"><?php __('home'); ?></a> |
        <a href="http://www.agapeatp.com/index.php?option=com_content&task=view&id=45&Itemid=62"><?php __('about us'); ?></a> |
        <a href="http://www.agapeatp.com/index.php?option=com_virtuemart&Itemid=66"><?php __('products'); ?></a> |
        <a href="http://www.agapeatp.com/index.php?option=com_content&task=view&id=71&Itemid=111"><?php __('atp community'); ?></a> |
        <a href="http://www.agapeatp.com/index.php?option=com_content&task=view&id=84&Itemid=140"><?php __('agape news'); ?></a> |
        <a href="http://www.agapeatp.com/index.php?option=com_content&task=view&id=80&Itemid=136"><?php __('contacts'); ?></a>
      </div>
      <div id="footer"></div>
      <div class="clear"></div>
            </td>
          </tr>
        </table>
      </div>
    </div>
  </div>
</div>
<?php
  if (is_array($javascripts)) {
      foreach ($javascripts as $js) {
          e($javascript->link($js));
      }
  }
?>

<script type="text/javascript"><?php e($scripts_for_layout); ?></script>
<div class="clear"></div>
<div style="color:#ccc;">
  <?php e($cakeDebug); ?>
</div>
</body>
</html>